home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / u_man / cat3 / Tcl / catch.z / catch
Encoding:
Text File  |  1998-10-30  |  1.9 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ccccaaaattttcccchhhh((((3333TTTTccccllll))))                                                        ccccaaaattttcccchhhh((((3333TTTTccccllll))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      catch - Evaluate script and trap exceptional returns
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ccccaaaattttcccchhhh _s_c_r_i_p_t ?_v_a_r_N_a_m_e?
  13.  
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      The ccccaaaattttcccchhhh command may be used to prevent errors from aborting command
  17.      interpretation.  CCCCaaaattttcccchhhh calls the Tcl interpreter recursively to execute
  18.      _s_c_r_i_p_t, and always returns a TCL_OK code, regardless of any errors that
  19.      might occur while executing _s_c_r_i_p_t.  The return value from ccccaaaattttcccchhhh is a
  20.      decimal string giving the code returned by the Tcl interpreter after
  21.      executing _s_c_r_i_p_t.  This will be 0000 (TCL_OK) if there were no errors in
  22.      _s_c_r_i_p_t; otherwise it will have a non-zero value corresponding to one of
  23.      the exceptional return codes (see tcl.h for the definitions of code
  24.      values).  If the _v_a_r_N_a_m_e argument is given, then it gives the name of a
  25.      variable; ccccaaaattttcccchhhh will set the variable to the string returned from _s_c_r_i_p_t
  26.      (either a result or an error message).
  27.  
  28.      Note that ccccaaaattttcccchhhh catches all exceptions, including those generated by
  29.      bbbbrrrreeeeaaaakkkk and ccccoooonnnnttttiiiinnnnuuuueeee as well as errors.
  30.  
  31.  
  32. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  33.      catch, error
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.